import Home from "@/pages/Home";
import Search from "@/pages/Search";
import Login from "@/pages/Login";
import Register from "@/pages/Register";
import Detail from "@/pages/Detail";

export default [
    {
        path:'/detail/:skuId',
        component:Detail
    },
    {
        path:'/home',
        component:Home
    },
    {
        name:'search',
        path: '/search/:keyword?',
        component: Search
    },
    {
        path: '/login',
        component: Login,
        meta:{
            isHidden:true
        }
    },
    {
        path: '/register',
        component: Register,
        meta:{
            isHidden:true
        }
    },
    //重定向路由
    {
        path:'/',//配404页面
        redirect:'/home'
    }
]

